package org.example.day20240820;

import java.util.Scanner;

public class BenZhong {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        scanner.next();
        for(int i=0; i<x; i++){
            String str = scanner.nextLine();
            String[] newArr = str.split(", ");
            if(newArr[0].endsWith("ong") && newArr[1].endsWith("ong.")){
                String[] newarr = newArr[1].split(" ");
                newarr[newarr.length-1] = "zhong.";
                newarr[newarr.length-2] = "ben";
                newarr[newarr.length-3] = "qiao";
                String result = String.join(" ",newarr);
                System.out.println(newArr[0]+", "+result);
            }else {
                System.out.println("Skipped");
            }
        }
    }
}
